package xu.com.openfeign.clients;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

@Service
@FeignClient(name="cloud-openfeign-1009", contextId  = "userClient2")
public interface UserFeignClient2 {
    /**
     * userController中的hello
     * @param name
     * @return
     */
    @GetMapping("/user/hello")
    public String hello(@RequestParam("name") String name, @RequestHeader("Authorization") String token);
}

